home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / System / asyncioppc / include / vbcc / clib / asyncio_protos.h
Encoding:
C/C++ Source or Header  |  2001-01-19  |  2.1 KB  |  58 lines

  1. #ifndef CLIB_ASYNCIO_PROTOS_H
  2. #define CLIB_ASYNCIO_PROTOS_H
  3. #ifndef LIBRARIES_ASYNCIO_H
  4. #include <libraries/asyncio.h>
  5. #endif
  6.  
  7. /* Functions for asycioppc V40 */
  8.  
  9. /* These are the functions for the M68K side of your program !! */
  10.  
  11. #ifndef __PPC__
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. struct AsyncFile *OpenAsync(STRPTR fileName,ULONG mode,LONG bufferSize);
  18. struct AsyncFile *OpenAsyncFromFH(BPTR handle,ULONG mode,LONG bufferSize);
  19. LONG CloseAsync(struct AsyncFile *file);
  20. LONG ReadAsync(struct AsyncFile *file,APTR buffer,LONG numBytes);
  21. LONG ReadCharAsync(struct AsyncFile *file);
  22. LONG ReadLineAsync(struct AsyncFile *file,STRPTR buffer,LONG size);
  23. LONG WriteAsync(struct AsyncFile *file,APTR buffer,LONG numBytes);
  24. LONG WriteCharAsync(struct AsyncFile *file,ULONG ch);
  25. LONG WriteLineAsync(struct AsyncFile *file,STRPTR line);
  26. LONG SeekAsync(struct AsyncFile *file,LONG position,LONG mode);
  27. STRPTR FGetsAsync(struct AsyncFile *file,STRPTR buffer,LONG size);
  28. STRPTR FGetsLenAsync(struct AsyncFile *file,STRPTR buffer,LONG size,LONG *length);
  29. LONG PeekAsync(struct AsyncFile *file,APTR buffer,LONG numBytes);
  30.  
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34.  
  35. #else
  36.  
  37. /* V40 functions */
  38.  
  39. /* These are the functions for the PPC-WOS side of your program !! */
  40.  
  41. struct AsyncFile *OpenAsyncPPC(STRPTR fileName,ULONG mode,LONG bufferSize);
  42. struct AsyncFile *OpenAsyncFromFHPPC(BPTR handle,ULONG mode,LONG bufferSize);
  43. LONG CloseAsyncPPC(struct AsyncFile *file);
  44. LONG ReadAsyncPPC(struct AsyncFile *file,APTR buffer,LONG numBytes);
  45. LONG ReadCharAsyncPPC(struct AsyncFile *file);
  46. LONG ReadLineAsyncPPC(struct AsyncFile *file,STRPTR buffer,LONG size);
  47. LONG WriteAsyncPPC(struct AsyncFile *file,APTR buffer,LONG numBytes);
  48. LONG WriteCharAsyncPPC(struct AsyncFile *file,ULONG ch);
  49. LONG WriteLineAsyncPPC(struct AsyncFile *file,STRPTR line);
  50. LONG SeekAsyncPPC(struct AsyncFile *file,LONG position,LONG mode);
  51. STRPTR FGetsAsyncPPC(struct AsyncFile *file,STRPTR buffer,LONG size);
  52. STRPTR FGetsLenAsyncPPC(struct AsyncFile *file,STRPTR buffer,LONG size,LONG *length);
  53. LONG PeekAsyncPPC(struct AsyncFile *file,APTR buffer,LONG numBytes);
  54.  
  55. #endif
  56.  
  57. #endif
  58.